package org.apache.ibatis.util;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

public class Test {
  public static void main(String[] args) {
    System.out.println("---------------");

    Map map = new HashMap<>();
    map.put("1", "apple");
    map.put("2", "orange");
    map.put("3", "pear");

    List<Map<String, Object>> entryList = (List<Map<String, Object>>) map.entrySet().stream().collect(Collectors.toList());
    System.out.println(entryList);

  }
}
